<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>按键修饰符</title>
</head>
<body>
<div id="example-3">
    <input v-on:keyup.13="say" placeholder="输入"/>
    <input v-on:keyup.enter="say" placeholder="输入"/>
    <input @keyup.13="say" placeholder="输入"/>
</div>
<script type="text/javascript" src="source/vue.js"></script>
<script type="text/javascript">
    var example = new Vue({
        el: '#example-3',
        methods: {
            say: function () {

                alert("不能提交")


            }
        }
    })
</script>
</body>
</html>